<?php
class Portfoliomanager_Model_Deleteportfolioitem implements Portfoliomanager_Model_Mainable{
    
    private $excepted_result = 1;
    private $actual_result;
    private $portfoliomanager_data_deleteportfolioitem;
    
    public function main(array $variables = null) {
        $this->portfoliomanager_data_deleteportfolioitem = new Portfoliomanager_Data_Deleteportfolioitem;
        $this->actual_result = $this->portfoliomanager_data_deleteportfolioitem->main($variables);
        if(
                $this->actual_result == $this->excepted_result
                ){
            header("Location: ".SITE_ROOT."zarzadzaj-portfolio.html");
        }
        else {
            header("Location: ".SITE_ROOT."zarzadzaj-portfolio.html");
        }
    }

}
